cmake_minimum_required(VERSION 3.18)

project(decodec)

# Compile options(编译选项)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
#set(CMAKE_CXX_FLAGS_DEBUG "-fPIC -O0 -g -Wall")
set(CMAKE_CXX_FLAGS_RELEASE "-fPIC -O2 -Wall")

include_directories(
    ${CMAKE_SOURCE_DIR}/decodec
    ${CMAKE_SOURCE_DIR}/thread
    ${CMAKE_SOURCE_DIR}/mpp/inc
)

link_directories(
    ${CMAKE_SOURCE_DIR}/mpp/lib
)

set(SOURCES
    src/main.cpp
    decodec/decodec.cpp
    thread/thread.cpp
)

add_executable(decodec ${SOURCES})
target_link_libraries(decodec pthread rockchip_mpp)
